From: Owen W. Taylor Date: Sat, 4 Jul 2009 14:01:54 +0000 (+0100) Subject: Don't include NoDisplay items, except for window identification X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~11233 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=8ee740e4254dc6c8cfc6864f83cf065beb959985;p=gnome-shell.git Don't include NoDisplay items, except for window identification Searching across NoDisplay desktop items can produce weird results to the user (including duplicates, and items that aren't really applications at all.) So, don't include them normally. But continue including NoDisplay items when we look up the desktop file for a window, since we want to catch applications like Evince and Nautilus which are otherwise NoDisplay. http://bugzilla.gnome.org/show_bug.cgi?id=587548 --- diff --git a/src/shell-app-system.c b/src/shell-app-system.c index 50da81dfd..44601c24d 100644 --- a/src/shell-app-system.c +++ b/src/shell-app-system.c @@ -217,7 +217,8 @@ gather_entries_recurse (ShellAppSystem *monitor, { GMenuTreeEntry *entry = (GMenuTreeEntry *)item; const char *id = gmenu_tree_entry_get_desktop_file_id (entry); - ids = g_slist_prepend (ids, g_strdup (id)); + if (!gmenu_tree_entry_get_is_nodisplay (entry)) + ids = g_slist_prepend (ids, g_strdup (id)); } break; case GMENU_TREE_ITEM_DIRECTORY: